package com.google.code.timetrail.presenter;

import java.awt.*;
import javax.swing.*;

import com.google.code.timetrail.backend.Control;

public class TitleFrameBackend {

	/**
     * The current game's data
     */
    private final Control gameControl;
    /**
     * Image of the title
     */
	private ImageIcon title;
	/**
	 * Image of background
	 */
	private ImageIcon background;
	/**
	 * Image of star
	 */
	private ImageIcon star;
	/**
	 * Image of the text for the Load Game button
	 */
	private ImageIcon loadGameButtonText;
	/**
	 * Image of the text for the Load Game button when hovered over
	 */
	private ImageIcon loadGameButtonTextHover;
	/**
	 * Image of the text for the New Game button
	 */
	private ImageIcon newGameButtonText;
	/**
	 * Image of the text for the New Game button when hovered over
	 */
	private ImageIcon newGameButtonTextHover;
	
	public TitleFrameBackend(Control gameControl) {
		this.gameControl = gameControl;
		title = new ImageIcon("assets/images/time_trial_title.png", "This is the game's title art.");
		background = new ImageIcon("assets/images/space_background.jpg", "This is the title page's background");
		star = new ImageIcon("assets/images/whitewonderstar.gif", "This is a star used to make the page pretty");
		loadGameButtonText = new ImageIcon("assets/images/load_game_button.png", "This is the Load Game button's image");
		newGameButtonText = new ImageIcon("assets/images/new_game_button.png", "This is the New Game button's image");
		loadGameButtonTextHover = new ImageIcon("assets/images/load_game_button_hover.png", "This is the Load Game button's image");
		newGameButtonTextHover = new ImageIcon("assets/images/new_game_button_hover.png", "This is the New Game button's image");
	}
	
	public ImageIcon getTitle() {
		return title;
	}
	public ImageIcon getBackground() {
		return background;
	}
	public ImageIcon getStar() {
		return star;
	}
	
	public ImageIcon getLoadGameButtonText() {
		return loadGameButtonText;
	}
	public ImageIcon getLoadGameButtonTextHover() {
		return loadGameButtonTextHover;
	}
	public ImageIcon getNewGameButtonText() {
		return newGameButtonText;
	}
	public ImageIcon getNewGameButtonTextHover() {
		return newGameButtonTextHover;
	}
}
